package com.digitalchina.lxnsy.activity.mainConsult;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.LiteratureVO;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：郑皓
 * 创建时间：2018/1/13 14:45:58
 * 修改备注：
 * ================================================
 */

public class LiteratureHolder extends BaseViewHolder<LiteratureVO> {

    private  TextView tvTitle;
    private  TextView tvTime ;
    private  TextView tvBrowse ;


    public LiteratureHolder(ViewGroup parent) {
        super(parent, R.layout.item_expert_literature);

        tvTitle = $(R.id.tv_title);
        tvTime = $(R.id.tv_time);
        tvBrowse = $(R.id.tv_browse);
    }

    @Override
    public void setData(final LiteratureVO data) {
        super.setData(data);

        tvTitle.setText(data.getLiteratureName());
        tvTime.setText(data.getCreateTime());
        tvBrowse.setText("浏览量："+data.getPageView());
    }

}
